<{extends file="$tpl_dir/tpl_base.htm"}>
<{block name="main"}>
<div class="main-head">
  <div class="main-head_title">
    <h2><{$title}></h2>
  </div>
</div>
<div class="main-body">
  <div class="mod-box mod-form">
    <form method="post" autocomplete="off" id="main_form">
      <input type="hidden" name="action" value="<{$action}>">
      <input type="hidden" name="id" value="<{$info.id}>">
      <input type="hidden" name="old_username" value="<{$info.username}>">
      <div class="mod-form_row">
        <div class="mod-form_label required">用户名</div>
        <div class="mod-form_input">
          <input type="text" name="username" class="mod-inpt" placeholder="4-16个字符" maxlength="16" value="<{$info.username}>">
        </div>
      </div>
      <div class="mod-form_row">
        <div class="mod-form_label<{if $action == 'create'}> required<{/if}>">密码</div>
        <div class="mod-form_input">
          <input type="text" name="password" class="mod-inpt" placeholder="6-20个字符，区分大小写" maxlength="20">
        </div>
      </div>
      <div class="mod-form_row">
        <div class="mod-form_label required">用户组</div>
        <div class="mod-form_input">
          <select name="groupid" class="mod-slct">
            <{html_options options=$options.group selected=$info.groupid}>
          </select>
        </div>
      </div>
      <div class="mod-form_post"><a class="mod-btn mod-btn_primary" href="javascript:;">提交</a> <a class="mod-btn act-goback" href="javascript:;">返回</a></div>
    </form>
  </div>
</div>
<{/block}>
<{block name="foot" append}>
<script type="text/javascript">
(function(){
	JUtil.submit("#main_form", {
		input:{
			username: {ch: "用户名"}<{if $action == 'create'}>, password: {ch: "密码"}<{/if}>
		}
	});
})();
</script>
<{/block}>